package com.atguigu.day08.HomeWork.HomeWork2;

/**
 * @version 1.0
 * @Author 马冰
 * @Date 2024/11/8 21:44
 * @注释
 */
public class Man extends Person {
    public Man(String name, int age, String career) {
        super(name, age, career);
    }

    @Override
    public void eat(){
        System.out.println(getName() + "狼吞虎咽吃饭");
    }
    public void smoke(){
        System.out.println(getName() + "抽烟");
    }
}
